package tq.com.tqteacher;

import android.graphics.PixelFormat;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

//import tq.com.tqplayer.media.IjkVideoView;
//import tv.danmaku.ijk.media.player.IjkMediaPlayer;

public class PlayActivity extends AppCompatActivity {

//    private String mp4 = "/storage/emulated/0/1539581768576.mp4";
//    private IjkVideoView videoView = null;
//    @Override
//    protected void onCreate(@Nullable Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_play);
//
//        // init player
//        IjkMediaPlayer.loadLibrariesOnce(null);
//        IjkMediaPlayer.native_profileBegin("libijkplayer.so");
//
//        mp4 = getIntent().getStringExtra("url");
//
//        videoView = (IjkVideoView)findViewById(R.id.playerView);
//        videoView.setVideoPath(mp4);
//        videoView.start();
//
//    }
//
//    @Override
//    protected void onStop() {
//        super.onStop();
//        videoView.stopPlayback();
//        videoView.release(true);
//        IjkMediaPlayer.native_profileEnd();
//    }
}
